import 'package:flutter/material.dart';

import 'package:get/get.dart';
// import 'package:my_plugins/my_plugins.dart';

import '../controllers/demo_controller.dart';

class DemoView extends GetView<DemoController> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('DemoView'),
        centerTitle: true,
      ),
      body: Column(
        children: [
          ElevatedButton(
            child: Text('添加闹钟'),
            onPressed: () {
              // AlarmEvent value = AlarmEvent();
              // value.title = '学习';
              // value.description = '学习';
              // value.hour = 16;
              // value.minutes = 40;
              // value.description = '学习';
              // MyPlugins.add2Alarm(value);
            },
          ),
          Text(
            'DemoView is working',
            style: TextStyle(fontSize: 20),
          ),
        ],
      ),
    );
  }
}
